﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using blackhouse.BlackApart.Web;

namespace blackhouse.Aparts.Web {
	public class SearchChangedEventArgs : EventArgs {
		public DateTime ArrivalDate { get; private set; }
		public DateTime DepartureDate { get; private set; }
		public int PeopleCount { get; private set; }

		public SearchChangedEventArgs(DateTime arrivalDate, DateTime departureDate, int peopleCount) {
			this.ArrivalDate = arrivalDate;
			this.DepartureDate = departureDate;
			this.PeopleCount = peopleCount;
		}

		public SearchState GetState() {
			return SearchState.GetState(this.ArrivalDate, this.DepartureDate, this.PeopleCount);
		}

	}

	public delegate void SearchValueChangedEventHandlers(object sender, SearchChangedEventArgs args);

}